package com.z6school.manage.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**日志表*/
@Data
@Accessors(chain = true)
@TableName("log")
@AllArgsConstructor
@NoArgsConstructor
public class Log implements Serializable {
    private static final long serialVersionUID = 6460140123172093473L;
    /**日志ID*/
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**用户名*/
    private String username;
    /**操作*/
    private String operation;
    /**方法*/
    private String method;
    /**参数*/
    private String params;
    /**耗时*/
    private Integer time;
    /**IP*/
    private String ip;
    /**创建时间*/
    private Date createdTime;
}
